<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    {:token()}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-type"  class="form-control selectpicker"  data-rule="required" name="row[type]">
                <option value="0" >请选择</option>
                {foreach name="type_arr" item="vo"}
                <option value="{$key}" {if $key == $row['type']}selected{/if} >{$vo}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">模板:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-temp_id" class="form-control selectpage" data-rule="required" name="row[temp_id]" data-source="work/work_template/work_template_list" type="text" value="{$row.temp_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Select_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-temp_item_id" class="form-control selectpage" data-rule="required" data-source="work/work_template/work_template_time_list" name="row[temp_item_id]" type="text" value="{$row.temp_item_id|htmlentities}">
        </div>
    </div>
    <div class="form-group mass_organizations" style="display:none">
        <label class="control-label col-xs-12 col-sm-2">主教/助教:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-teacher_type"  class="form-control selectpicker" name="row[teacher_type]">
                <option value="0" >请选择</option>
                {foreach name="teacher_type_arr" item="vo"}
                <option value="{$key}" {if $key == $row['teacher_type']}selected{/if}>{$vo}</option>
                {/foreach}
            </select>
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
